<include file='Public/header' />
<style>
	.content{
		width:90%;
		height:400px;
		margin-left:5%;
	}
	.left{
		float:left;
		padding-top:5%;
		width:60%;
		height:100%;
		margin-left:2%;
	}
	.right{
		width:30%;
		padding-top:5%;
		height:90%;
		margin-left:65%;
	}
	#pf{
		width:50%;
		margin-left:25%;
		font-size:30px;
	}
	#intro{
		width:90%;
		margin-left:5%;
	}
	#jqjj{
		width:50%;
		margin-left:35%;
	}
	#message_content{
		width: 90%;
	    margin-left: 10%
	}
	#message_title{
		width:50%;
		margin-left:36.5%;
	}
	.messagebox{
		width: 90%;
		margin-left:5%;
	}
    .usermessage{
    	width:30%;
    	float:right;
    }
	#fbly{
		width:90%;
		margin-left: 5%;
	}
	#fbutton{
		float:right;
		margin-right:2%;
	}
     #footer{
			width:100%;
			text-align:center;
	   }
</style>	
	<?php
		$picpath=str_replace("thumb_","",$good[0]['yjl_photo']);
	?>
	<div class="content">
		<div class="left">
			<image src="__PUBLIC__/photo/{$picpath}" width="60%" height="100%">
		</div>
		<div class="right">
		<table class="table">
			<tr>
			<th>名称</th><td> {$good[0]['yjl_name']}</td></tr>
			<tr>
			<th>简短介绍</th>
			<td> {$good[0]['yjl_basdescrip']}
			</td>
			</tr>
			<tr>
			<th>规格参数</th>
			<td> {$good[0]['yjl_parameter']}
			</td>
			</tr>
			<tr>
			<th>所属类别</th>
			<td> 
			 {$classname[0]['yjl_classname']}
			</td>
			</tr>
			</table>
		</div>
	</div>
	
	<div id="intro">
	<hr>
		<div id="jqjj"><h3>详细介绍</h3></div>
		<div>
			<p>{$good[0]['yjl_detdescrip']}</p>
		</div>
	</div>
	<div class="message_content">
	<div id="message_title"><h3>最新评论</h3></div>
		<div class='messagebox'>
			<volist name="meslist" id="mesg">
				<div class='form-control' rows='3' cols='20'>{$mesg.yjl_content}</div>
				<div class='usermessage'>
				<a>{$mesg.yjl_username}   ||  </a><a>{$mesg.yjl_ptime}</a>
				</div>
				<hr>
			</volist>
		 </div>
</div>
	<div id='fbly'><!-- 发表留言-->
		<form  method='POST' action="{:U('List/add')}">	
		<input type='hidden' name='yjl_gid' value="{$good[0]['yjl_id']}">
		<?php
		if(isset($_SESSION['user'])){
		echo "<input type='hidden' name='yjl_uid' value='".$_SESSION['user']['yjl_id']."'>";
			echo "			
			<textarea name='yjl_content' class='form-control' rows='3' cols='20'
				placeholder='在这里发表评论' ></textarea>
			<input type='submit'  class='btn btn-primary' value='发表评论'>
			</div>
		</div>";
		}else{
		  echo "您可以选择<a href='#' data-toggle='modal'  data-target='#login'><h3>登录</h3></a>发表评论！";
		}?>
		</form>
	<hr>
<include file='Public/footer'/>
